package u17.builder;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import u17.model.User;

/**
 * User对象封装类
 * @author 杜延雷
 */
public class Builder {
	private HttpServletRequest request;
	
	public Builder(HttpServletRequest request){
		this.request = request;
	}
	
	public User getUser(){
		User user = new User();
		user.setYid(Integer.valueOf(request.getParameter("id")));
		user.setYlastlogindatetime(new Date());
		return user;
	}
}
